package com.vhuomai.wechat.mapper;

import com.vhuomai.mybatis.mapper.auto.AutoMapper;
import com.vhuomai.wechat.constant.TemplateCode;
import com.vhuomai.wechat.entity.BaseWxTemplate;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author harris
 */
@Mapper
public interface WxTemplateMapper extends AutoMapper<BaseWxTemplate, Integer> {
    
    List<BaseWxTemplate> findByMerchantNo(@Param("merchantNo") Integer merchantNo);
    
    BaseWxTemplate findByCode(@Param("merchantNo") Integer merchantNo,
                              @Param("code") TemplateCode code);
}
